Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPM-installed files with large UID/GID. #1157

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

gouttegd
Copy link
Contributor

For some unknown reasons (cough Javascript cough), when NPM's underscore module is installed (as a dependency to Obographviz), its files are given some impossibly large UID and GID. This may prevent the final image from being used on systems where Docker runs in rootless mode.

So after Obographviz is installed, we ensure that all files and directories under /usr/local/lib/node_modules belong to root as they should.

closes #1156

For some unknown reasons (*cough* Javascript *cough*), when NPM's
`underscore` module is installed (as a dependency to Obographviz), its
files are given some impossibly large UID and GID. This may prevent the
final image from being used on systems where Docker runs in rootless
mode.

So after Obographviz is installed, we ensure that all files and
directories under /usr/local/lib/node_modules belong to root as they
should.
@gouttegd gouttegd requested a review from matentzn December 13, 2024 10:19
@gouttegd gouttegd self-assigned this Dec 13, 2024
@gouttegd gouttegd merged commit d734424 into master Dec 16, 2024
1 check passed
@gouttegd gouttegd deleted the fix-large-node-uids branch December 16, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error pulling from Docker image: "failed to register layer: failed to Lchown..."
1 participant